#include <bits/stdc++.h>
using namespace std;

int arr[105][105];
int w[2];
int main(){
    int n ,wx=0, wy=0;
    cin>>n;
    for (int i = 1; i <= n; ++i)
        for (int j = 1; j <= n; ++j)
            cin>>arr[i][j];
    for (int i = 1,sum; i <= n; ++i) {
        sum=0;
        for (int j = 1; j <= n; ++j)
            if (arr[i][j]==1)
                ++sum;
        //cout<<sum<<endl;
        if (sum%2==1) {
            ++wx;
            w[0] = i;
        }
    }
    for (int j = 1,sum; j <= n; ++j) {
        sum=0;
        for (int i = 1; i <= n; ++i)
            if (arr[i][j]==1)
                ++sum;
        //cout<<sum<<endl;
        if (sum%2==1) {
            ++wy;
            w[1] = j;
        }
    }
    if (wx==1 and wy==1)
        cout<<w[0]<<' '<<w[1];
    else if (wx==0 and wy==0)
        cout<<"OK";
    else
        cout<<"Corrupt";
    cout<<endl;
    return 0;
}